package com.haizhi.crm.sys.auth.dao;

import com.haizhi.crm.sys.auth.model.PositionRoleDo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by yangyijun on 2018/5/10.
 */
@Repository
public interface PositionRoleDao extends JpaRepository<PositionRoleDo, Long> {
    List<PositionRoleDo> findByPositionId(@Param("positionId" ) Long positionId);
}
